<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

//静默登录操作
Route::post('theLogin',[\App\Http\Controllers\LoginController::class,'theLogin'])->middleware('throttle:20,1');

//排行榜展示的路由
Route::get('showList',[\App\Http\Controllers\UserController::class,'showList'])->middleware('auth:api','throttle:20,1');

//token返回跳转的路由
Route::get('login',function ()
{
    return 'token不通过';
})->name('login');
